package com.solution.admin.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.solution.admin.customer.service.CustomerService;
import com.solution.admin.report.dao.CustomerAreaDistributionDao;
import com.solution.admin.report.entity.CustomerAreaDistributionEntity;
import com.solution.admin.report.service.CustomerAreaDistributionService;

/**
 * 客户区域分布业务实现层
 * @author: solin
 * @date: 2018年1月4日 上午9:43:49
 */
@Service
public class CustomerAreaDistributionServiceImpl implements CustomerAreaDistributionService {
	
	@Autowired
	private CustomerAreaDistributionDao customerAreaDistributionDao;

	/**
	 * 获取客户城市分布
	 * @return
	 * @author: solin
	 * @date: 2018年1月4日 上午9:44:25 
	 */
	@Override
	public List<CustomerAreaDistributionEntity> getCustomerCityDistributionList(String provinceCode) {
		return customerAreaDistributionDao.getCustomerCityDistributionList(provinceCode);
	}

	/**
	 * 获取客户省份分布
	 * @return
	 * @author: solin
	 * @date: 2018年1月4日 上午9:44:28 
	 */
	@Override
	public List<CustomerAreaDistributionEntity> getCustomerProvinceDistributionList(String provinceCode) {
		return customerAreaDistributionDao.getCustomerProvinceDistributionList(provinceCode);
	}

}
